home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
G DATA AddOns2
/
WebShop
/
_SETUP.1
/
sb2buy1.js
< prev
next >
Wrap
Text File
|
2001-12-21
|
2KB
|
58 lines
<!-- sb2buy1 Set Form Data -->
<!-- (c) Copyright 2001 GS Software -->
<!-- -->
<script LANGUAGE="JavaScript">
function getdata() {
// Collect and store delivery info
for(i=0;i<document.shipmentform.shipmentselect.length;++i) {
if(document.shipmentform.shipmentselect.options[i].selected == true) {
parent.myshipmentnr=i;
parent.myshipmentvalue=document.shipmentform.shipmentselect.options[i].value;
parent.myshipmenttext=document.shipmentform.shipmentselect.options[i].text;
}
}
for(i=0;i<document.shipmentform.paymentselect.length;++i) {
if(document.shipmentform.paymentselect.options[i].selected == true) {
parent.mypaymentnr=i;
parent.mypaymentvalue=document.shipmentform.paymentselect.options[i].value;
parent.mypaymenttext=document.shipmentform.paymentselect.options[i].text;
}
}
self.location= "buy2.htm";
}
{IfIclear}
function getdataiclear() {
// Collect and store delivery info
for(i=0;i<document.shipmentform.shipmentselect.length;++i) {
if(document.shipmentform.shipmentselect.options[i].selected == true) {
parent.myshipmentnr=i;
parent.myshipmentvalue=document.shipmentform.shipmentselect.options[i].value;
parent.myshipmenttext=document.shipmentform.shipmentselect.options[i].text;
}
}
for(i=0;i<document.shipmentform.paymentselect.length;++i) {
if(document.shipmentform.paymentselect.options[i].selected == true) {
parent.mypaymentnr=i;
parent.mypaymentvalue=document.shipmentform.paymentselect.options[i].value;
parent.mypaymenttext=document.shipmentform.paymentselect.options[i].text;
}
}
}
{EndIfIclear}
function setdata() {
// Set delivery info
document.shipmentform.shipmentselect.selectedIndex = parent.myshipmentnr;
document.shipmentform.paymentselect.selectedIndex = parent.mypaymentnr;
}
</script>